package com.hisense.hiioc.hismartplate.service;

import com.hisense.hiioc.hismartplate.base.BaseService;
import com.hisense.hiioc.hismartplate.entity.table.ClientSearchEntity;
import com.hisense.hiioc.hismartplate.entity.table.FaceEventEntity;
import com.hisense.hiioc.hismartplate.entity.table.query.FaceIdRangeQuery;
import com.hisense.hiioc.hismartplate.mapper.ClientSearchUrlMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: almo
 * @Date: 2018/12/11 上午9:06
 * @Version 1.0
 */
@Service
public class ClientSearchUrlService extends BaseService<ClientSearchEntity,ClientSearchUrlMapper> {

    public int uploadClientSearchUrl(ClientSearchEntity entity) {
        return mapper.insertClientSearchUrl(entity);
    }

    public List<ClientSearchEntity> getClientEventByTimeRange(FaceEventEntity entity) {
        return mapper.getClientEventByTimeRange(entity);
    }

    public int updateClientEventFaceId(FaceIdRangeQuery query) {
        return mapper.updateClientEventFaceId(query);
    }

    public ClientSearchEntity getClientEventHistoryById(FaceEventEntity entity) {
        return mapper.getClientEventHistoryById(entity);
    }

}
